package com.ant.storage.service;
import com.ant.storage.common.PageRecv;
import com.ant.storage.common.ResultPage;
import com.ant.storage.common.ResultVo;
import com.ant.storage.dto.CommodityDto;
import com.ant.storage.dto.InventoryCheckDto;
import com.ant.storage.pojo.Commodity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import org.springframework.validation.BindingResult;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author melon
 * @since 2022-04-13
 */
public interface ICommodityService extends IService<Commodity> {

    PageInfo<Commodity> getCommodityPage(CommodityDto commodityDto);

    ResultVo saveCommodity(CommodityDto commodityDto, BindingResult bindingResult);

    Object queryCommodity(Integer commodity_id,Integer warehouse_id);

    ResultPage queryCommodityList(PageRecv<InventoryCheckDto> pageRecv);

    ResultVo uploadCommodity(MultipartFile file);

    PageInfo<Commodity> listPage(CommodityDto dto);
}
